import React, { PropTypes } from 'react';
import listReportTable from '../addons/ListReportTable'
import Factory from '../factory';

class SimpleListReport extends React.Component {
    constructor(props) {
        super(props);
    }
    render() {
        const reportName = this.props.reportName
        const ListReport = listReportTable(reportName)
        return (
            <ListReport {...this.props} />
        )
    }
}
SimpleListReport.propTypes = {
    permID: PropTypes.number,
    reportName: PropTypes.string,
    viewACBL: PropTypes.bool,
    viewINRT: PropTypes.bool,
    viewDIVI: PropTypes.bool
};
SimpleListReport.defaultProps = {
    permID: 0,
    reportName: "",
    viewACBL: false,
    viewINRT: false,
    viewDIVI: false
};

export default SimpleListReport;

let render = (props) => React.createElement(SimpleListReport, props);
let f = new Factory()
f.set("SimpleListReport", render)